package com.hospital.api;

import com.hospital.api.factory.RemoteFileFallbackFactory;
import com.hospital.common.core.constants.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(contextId = "remoteFileService",value = ServiceNameConstants.FILE_SERVICE,fallbackFactory = RemoteFileFallbackFactory.class)
public interface RemoteFileService {

    @GetMapping("/hello")
    public String sayHello();
}
